#########################
#   Author : Leon yu    #
#   Date : 2025/06/03   #
#   Id : SM2772         #
#########################
import os
from setuptools import setup, find_packages

currentPath = os.path.abspath(os.path.dirname(__file__))
tempFilesPath = os.path.join(currentPath, 'tempFiles')
apiInitDataPath = os.path.join(tempFilesPath, 'apiInitData')
log_path = os.path.join(currentPath, 'Logs')

def initDocument():
    if not os.path.exists(tempFilesPath):
        os.makedirs(tempFilesPath)
    else:
        if not os.path.exists(apiInitDataPath):
            os.makedirs(apiInitDataPath)
    if not os.path.exists(log_path):
        os.makedirs(log_path)
        
        

initDocument()
install_requires = [
    "requests",
    "pandas",
    "toml",
    "colorlog",
    "schedule",
    "pyecharts",
    "pyjwt",
    "pymysql",
    "sqlalchemy",
    "mysql-connector",
    "click",
    "nacos-sdk-python",
    "inputimeout",
    "flask",
    "aioflask",
    "flask[async]",
    "redis",
    "kazoo",
    "pycryptodome",
    "jsonpath-ng"
]

setup(
    name='Lucifer',
    version='1.0',
    python_requires='>=3.5, <4',
    packages=find_packages(exclude=['Lucifer.*']),
    install_requires=install_requires
)